const express = require('express')
const app = express()
const cors = require('cors')
const Router = require('./routes/router')



app.use(express.urlencoded({ extended: false }))
app.use(express.json())
app.use(cors())
app.use(Router)

app.listen(3000, (err) => {
    if (err) {
        console.log(err)
    } else {
        console.log('http://localhost:3000/tasks')
    }
})


